<template>
  <div class="login-container">
    <!-- 导航栏 -->
    <van-nav-bar
      class="page-nav-bar"
      @click-left="$router.back()"
      left-arrow
      title="我的收藏"
    />
    <!-- /导航栏 -->
    <van-card
      v-for="item in list"
      :key="item.id"
      :price="item.retail_price"
      :thumb-link="'/goodsDetail/#/goodsDetail/' + item.value_id"
      :desc="item.goods_brief"
      :title="item.name"
      :thumb="item.list_pic_url"
    />
  </div>
</template>

<script>
import { Addarticle } from "@/api/cuixingkui/user";
export default {
  name: "Collect",
  data() {
    return {
      list: [],
    };
  },
  created() {
    this.Addarticle();
  },
  methods: {
    async Addarticle() {
      let { data } = await Addarticle(0);
      this.list = data.data.data;
      console.log(this.list);
    },
  },
};
</script>

<style lang="less" scoped>
.van-card {
  font-size: 30px;
}
/deep/ .van-card__price {
  color: red !important;
}
</style>
